#!/bin/sh
# Milis Linxu Hızlı Go Kurucu 2022
[ -z $1 ] && exit 1

version=$1

cd $HOME/.cache
wget https://go.dev/dl/go${version}.linux-amd64.tar.gz

rm -rf ../.local/go && tar -C ../.local -xzf go${version}.linux-amd64.tar.gz

export PATH=$PATH:$HOME/.local/go/bin
